package cn.iocoder.yudao.module.system.controller.admin.mini.userInfo.vip;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * vip支付订单
 */
@Data
@TableName(value = "qd_vip_pay")
public class VipDO extends BaseDO {

    /**
     * id主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    private String orderCode;
    /**
     * 支付状态1已支付2未支付
     */
    private Integer payStatus;
    /**
     * 支付时间
     */
    private LocalDateTime payTime;
    /**
     * 付款金额
     */
    private BigDecimal payPrice;

    //导购员id
    private Integer shopUserId;
    //导购员手机号
    private String shopPhone;
    //折扣id
    private Integer disId;
    //开通时间(月)
    private Integer month;
    //是否被支付接口消费 1有效2失效
    private Integer takeEffect;
    //易神记录
    private String ysInfo;

    //申请人手机号
    @TableField(exist = false)
    private String userPhone;
    //申请人昵称
    @TableField(exist = false)
    private String nickName;
    /**
     * paypal编号
     */
    private String paypalCode;

    public VipDO() {
    }

    public VipDO(String orderCode,BigDecimal payPrice,String shopPhone) {
        this.orderCode = orderCode;
        this.payPrice=payPrice;
        this.shopPhone=shopPhone;
    }
}
